//
//  YQAddressAddSwitchCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/1.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class YQAddressAddSwitchCell: YQAddressAddBaseCell {
    @objc lazy var topSwitch: UISwitch = {
        let topSwitch = UISwitch(frame: CGRect(x: self.width-60, y: 10, width: 60, height: 28));
        topSwitch.centerY = self.contentView.centerY;
        topSwitch.transform = CGAffineTransform(scaleX: 0.85, y: 0.8);
        //topSwitch.thumbTintColor = UIColor.ks_hexadecimalColor(hexadecimal: "#4A99F5")
        topSwitch.onTintColor = appThemeColor;
        return topSwitch;
    }()

    override func layoutSubviews() {
        super.layoutSubviews();
        self.contentView.addSubview(self.topSwitch);
        self.topSwitch.mas_makeConstraints { (make) in
            make?.right.mas_equalTo()(-15);
            make?.centerY.mas_equalTo()(0);
        }
        
        
    }
}
